package fachadaImagen.actions;

import multimedia.IMultimediaDAO;
import multimedia.MultimediaDAOFactory;

public class BuscarImagenAction {

	private String palabraClave;

	public BuscarImagenAction(String palabraClave) {
		this.palabraClave = palabraClave;
	}

	public Object Execute() {
		try {
			IMultimediaDAO multimediaDAO = MultimediaDAOFactory.GetDAO();
			return multimediaDAO.buscarMultimedia(palabraClave,"imagen");

		} catch (Exception e) {

			return null;
		}
	}

}
